package com.pa.authorization;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
@EnableEurekaClient //开启注册中心
@EnableDiscoveryClient //服务注册与发现
@MapperScan("com.pa.authorization.mapper")
@CrossOrigin(origins = "*", maxAge = 3600)
public class SpringCloudAuthorizationApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudAuthorizationApplication.class, args);
    }

}
